#include <stdio.h>
#include <linux/unistd.h>
#include <errno.h>
#include <sys/stat.h>
#include <stdlib.h>
#include<unistd.h>
#include<sched.h>
#include "userweight.h"




int main(int argc, char *argv[])
{
  int uid =getuid();	
long wt=getuserweight(1000);
perror("getuserweight");
	printf("the weight of  is  %ld \n", wt);
	printf("the user id of current   is %d\n",uid);
	int ret=setuserweight(1000,20);
	perror("setuserweight");
	printf("the prog returned %d\n ",ret);
wt=getuserweight(1000);
perror("getuserweight");
	printf("the changed weight is %ld \n", wt);
  return 0;
}
